feat(cli): use --node for dora logs node selection#1883
Conversation
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
|
This is a breaking change, right? Can we perhaps add a hidden positional argument that gives a better error message? E.g. something like 'use the There are also some docs that still use the old syntax after this PR, e.g. |
8f941e6 to
17bb016
Compare
|
Addressed this in
Validation:
|
|
Did a pre-landing review pass. The PR is solid: the hidden-legacy-positional + targeted-hint approach from phil-opp's review was the right call, the parser tests cover the main shapes, and the doc updates are thorough (README, README.zh-CN, all 5 docs/*.md, plus the daemon-side error message in Three minor UX nits worth flagging. None of these are merge blockers, just polish opportunities for either this PR or a follow-up. 1. Misleading hint when both legacy positional and
|
|
Addressed the conflict-handling nits in b15efe2.\n\nChanges:\n- Added clap conflicts for the hidden legacy positional node argument against both |
Fixes #1880
Summary
dora logsnode selection explicit with--node/-ndora logs DATAFLOW NODEshape in parser testsValidation
cargo test -p dora-cli command::tests::passed: 74 passed, 0 failed, 78 filtered outcargo fmt --all -- --checkpassedgit diff origin/main..HEAD --checkpassedgitleaks detect --source . --log-opts=origin/main..HEAD --redact --no-bannerpassed: no leaks foundcargo clippy -p dora-cli --all-targets -- -A clippy::unnecessary-sort-by -D warningspassedNote: strict clippy without the allow currently hits the existing Rust 1.95
clippy::unnecessary_sort_bywarning inbinaries/coordinator/src/lib.rs:3698, outside this change.